import request from "@/utils/request";


export default{
  list(params) {
    return request({
      url: `/student`,
      method: 'get',
      params:params
    })
  },
 
  delete(id){
    return request({
      url: `/deleteStudent/`+id,
      method: 'delete'
    })
  },
  deleteBatch(ids){
    return request({
      url: `/deleteStudents`,
      method: 'DELETE',
      dataType: 'json',
      params:{
        ids:ids+''
      }
    })
  },
  addStudent(params){
    return request({
      url: `/addStudent`,
      method: 'post',
      data:params
    })
  },
    updateStudent(params){
      return request({
        url: `/updateStudent`,
        method: 'put',
        data:params
      })
  },
  getOne(id){
    return request({
      url: `/getStudent/`+id,
      method: 'get'
    })
}

}